/**
 * @Author: 雷◕‿◕宇
 * @Description: 常量构造方法
 * @Date: 2018/10/29
 */
void main() {
  const person = const Person("Tom", 20, "Male");
  // var person = Person("name", 2, "gender");
  person.work();
}

class Person {
  final String name;
  final int age;

  final String gender;

  const Person(this.name, this.age, this.gender);

  void work() {
    print(this.name);
    print(this.age);
    print(this.gender);
    print("Work...");
  }
}
